if __name__ == '__main__':
    s = 'N0FG01080EBDZYPO02'
    reversed_s = s[::-1]  # 反转字符串
    total = 0

    for i in range(8):
        if i < len(reversed_s):
            total += ord(reversed_s[i])  # 获取 ASCII 值

    result = total % 32 if total is not None else 0
    print(f"分片: {result}")
